import { IHomeState } from "@/typings/home";
import { createStore, storeKey } from "vuex";
import home from "./modules/home";

// 这里面定义所有的状态

export interface IGlobalState {
  home: IHomeState; // 某个页面，某个模块可以在这里增加
}

const store = createStore<IGlobalState>({
  // state: {},
  mutations: {},
  actions: {},
  modules: {
    home,//记得这里要引入
  },
});

export default store;
